//index.js
const app = getApp()
let that = null;
import store from "../../factory"
import * as Request from '../../request';
import * as mouble from '../../until';

Page({
  data: {
    list: []
  },
  onLoad: function () {
    that = this
  },
  onShow() {
    that.getList()
  },
  getList() {
    Request.getNotification().then(res => {
      if (res.code && res.data) {
        that.setData({
          list: res.data
        })
      }
    })
  },
})
